<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>SEE DEMO</title>
    <script src="https://code.jquery.com/jquery-3.2.1.min.js" ></script>
</head>
<body>
<div id="msgFrompPush"></div>
<script>
    deferred();
    function deferred(){
    $.get('defer',function(data){
     $("#msgFrompPush").append(data+"<br/>");
    });
    }
</script>
</body>
</html>